fix(catalog): auto-sync from tagged main heads + slug-scoped intents - #607
Merged
Conversation
…ped intents
Two silent ways the catalog (and its docs) never reached the platform:
- The auto-publish gate keyed on scope precedence, where tag outranks
branch: a release workflow that tags every main head disabled
auto-sync FOREVER, with no output (hit live — a repo's Docs library
stayed empty because each merge commit was immediately tagged). The
gate now takes the snapshot and accepts a clean main head that is also
tagged; dirty/detached/PR states stay excluded. Every silent
precondition return now says why under ORUN_VERBOSE.
- The push scope adopted the intent-declared project SLUG; state routes
take prj_… ids, so the object sync 404'd ('Route not found:
…/projects/<slug>/state/objects/missing', warn-only in autosync).
Same resolution as run/#606: OIDC-bound id wins in CI, projects-list
resolution elsewhere.
Also: `orun catalog push` resolves the backend URL from intent.yaml
(passed nil before — the explicit verb demanded --backend-url even
inside a configured repo).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why workspace Docs libraries stayed empty — two independent silent failures in catalog auto-sync:
branch-main— a release workflow that tags every main head (exactly what the baseline does) never published, silently. The gate now takes the WorkspaceState and accepts a CLEAN main head that is also tagged; every silent precondition return now reports why underORUN_VERBOSE.project: <slug>declared in the intent (lumen#66), the object sync built…/projects/<slug>/state/objects/missing→Route not found, warn-only. Same fix as fix(run): remote-state scope resolves intent-declared project slugs #606: adopt the OIDC-boundprj_…in CI, resolve via the projects list elsewhere.Plus:
orun catalog pushnow resolves the backend URL from intent.yaml (was passing nil).Verified live: with the patched binary, a headless
orun planon ambient auto-synced 248 objects, advanced the head, and after reprojection the org doc index returns the full doc set (repo + per-component overview/architecture/runbook). Tagged-main gate verified behaviorally on the lumen checkout.🤖 Generated with Claude Code